package com.crm.eg.service;

import java.util.List;

import com.crm.eg.bean.UserAccount;
import com.crm.exception.DBException;

/**
 * 
 * Class Description
 * <pre>
 * Filename			: UserAccountService.java 
 * Date				: 2008-10-27
 * Creator			: liuqing
 * Revised Description
 * ----------------------------------------------
 * ver	revised date	reviser	revised contents
 * ----------------------------------------------
 * 1.0  2008-10-27         liuqing  
 *</pre>
 */
public interface UserAccountService {
	
	/**
	 * 
	 * Method Description
	 *  get all user accounts
	 * Creator         : liuqing
	 * @return
	 *
	 * ----------------------------------------------
	 * ver	revised date	reviser	revised contents
	 * ----------------------------------------------
	 * 1.0  2008-10-27         liuqing
	 */
	public List<UserAccount> getAllUserAccount() throws DBException;
	
	/**
	 * 
	 * Method Description
	 *  get UserAccount By UserName
	 * Creator         : liuqing
	 * @return
	 *
	 * ----------------------------------------------
	 * ver	revised date	reviser	revised contents
	 * ----------------------------------------------
	 * 1.0  2008-10-27         liuqing
	 */
	public List<UserAccount> getUserAccountByUserName(String username) throws DBException;
	
	/**
	 * 
	 * Method Description
	 *  add UserAccount
	 * Creator         : liuqing
	 * @return
	 *
	 * ----------------------------------------------
	 * ver	revised date	reviser	revised contents
	 * ----------------------------------------------
	 * 1.0  2008-10-27         liuqing
	 */
	public void saveUserAccount(UserAccount userAccount) throws DBException;
	
	/**
	 * 
	 * Method Description
	 *  delete UserAccount
	 * Creator         : liuqing
	 * @return
	 *
	 * ----------------------------------------------
	 * ver	revised date	reviser	revised contents
	 * ----------------------------------------------
	 * 1.0  2008-10-27         liuqing
	 */
	public void deleteUserAccount(Long id) throws DBException;
	
	/**
	 * 
	 * Method Description
	 *  get all user accounts
	 * Creator         : liuqing
	 * @return
	 *
	 * ----------------------------------------------
	 * ver	revised date	reviser	revised contents
	 * ----------------------------------------------
	 * 1.0  2008-10-27         liuqing
	 */
	public UserAccount getUserAccountById(Long id) throws DBException;
	
}
